package org.ntu.csn.doraemon.data;

import java.io.IOException;

/**
 * 
 * A interface should implemented by the serializable model class  
 * @author Wang Ding
 */
public interface Serializable {

   
    public byte[] serialize() throws IOException;

  
    public void unSerialize(byte[] data) throws IOException;

  
    public void setId(int id);


    public int getId();
}
